import service from '@/utils/request'

export function getList(params) {
  return service({
    url: '/umsRole/list',
    method: 'get',
    params
  })
}




export function getForm(id) {
  return service({
    url: '/umsRole/queryById?roleId='+id,
    method: 'get'
  })
}


export function save(params) {
  return service({
    url: '/umsRole/save',
    method: 'post',
    params
  })
}


export function update(params) {
  return service({
    url: '/umsRole/update',
    method: 'post',
    params
  })
}
export function deleteById(id) {
  return service({
    url: '/umsRole/deleteById?roleId='+id,
    method: 'get',
  })
}
